﻿

using System;
using System.Threading.Tasks;
using System.Linq.Expressions;

using Oliving.Edge.Model;
using Oliving.Edge.Model.Dto;
using Oliving.Edge.Model.Models;
using Oliving.Edge.IServices;
using Oliving.Edge.IRepository;
using Oliving.Edge.Services.BASE;
using Oliving.Edge.Model.Dto.WY;
using Oliving.Edge.IRepository.WY;
using Oliving.Edge.IServices.WY;
using Oliving.Edge.Model.Models.XLT;

namespace Oliving.Edge.Services.WY
{

    public partial class WY_ProjectServices : BaseServices<WY_Project>, IWY_ProjectServices
    {
        IWY_ProjectRepository _dal;
        public WY_ProjectServices(IWY_ProjectRepository dal)
        {
            this._dal = dal;
            base.BaseDal = dal;
        }



        public async Task<PageModel<WY_ProjectPageDto>> QueryPageList(
            Expression<Func<WY_Project, bool>> whereExpression,
            int pageIndex = 1, int pageSize = 20,
            string sortField = null, string sortOrder = null
            )
        {
            var page = await _dal.QueryPageList(
                whereExpression,
                pageIndex, pageSize,
                    sortField, sortOrder);
            return page;
        }



    }
}

